package com.lishe.lishe.lishe.module.excitation.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by shino on 2017/11/28.
 */

public class MyMessageObject implements Serializable {
    @SerializedName("id")
    private String id;//消息id
    @SerializedName("comId")
    private String comId;//企业id
    @SerializedName("userId")
    private String userId;//被赞员工id
    @SerializedName("eventId")
    private String eventId;//事件id
    @SerializedName("messageContent")
    private String messageContent;//消息内容
    @SerializedName("messageType")
    private String messageType;//消息类型（0：有人评论，1：有人赠送小礼）
    @SerializedName("createTime")
    private String createTime;//消息添加时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getComId() {
        return comId;
    }

    public void setComId(String comId) {
        this.comId = comId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取消息类型（0：有人评论，1：有人赠送小礼）
     *
     * @return
     */
    public String getMessageTypeToString() {
        String msg = null;
        if (messageType == null) {
            return msg;
        }
        switch (messageType) {
            case "0":
                msg = "有人评论";
                break;
            case "1":
                msg = "有人赠送小礼";
                break;
        }
        return msg;
    }
}
